package com.zhang.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhang.blog.entity.Article;
import com.zhang.blog.entity.dos.Archives;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: ArticleMapper
 * @Auther: dell
 * @Date: 2021/10/27 20:57
 * @Description:
 */
@Repository
public interface ArticleMapper extends BaseMapper<Article> {
    List<Archives> listArchives();

    IPage<Article> listArticle(@Param("page")Page<Article> page,
                               @Param("categoryId")Long categoryId,
                               @Param("tagId")Long tagId,
                               @Param("year")String year,
                               @Param("month")String month);
}
